package com.cg.feign;

import com.cg.controller.Service01Controller;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service02-8082",url = "localhost:8082")
//@Component
public interface Service02Service {

    @GetMapping("/service02/getInfo/{userId}")
    String getInfo(@PathVariable("userId") Integer userId);

}
